package com.wswy.wzcx.ui.main.garage

import android.graphics.Color
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.wswy.wzcx.R
import com.wswy.wzcx.model.home.RouterUtils
import com.wswy.wzcx.module.base.CBaseFragment
import com.wswy.wzcx.module.base.onClick
import com.wswy.wzcx.statistics.StatTools
import com.wswy.wzcx.statistics.StatisticsId
import kotlinx.android.synthetic.main.fragment_garage_tips.*

/**
 * 车库  -- 未登录 或者没有车辆 状态
 */
class AddTipsFragment : CBaseFragment() {

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        return inflater.inflate(R.layout.fragment_garage_tips,container,false)
    }

    override fun onActivityCreated(savedInstanceState: Bundle?) {
        super.onActivityCreated(savedInstanceState)


        fl_content.background = TipsContentDrawable(Color.WHITE)

        ll_add_car.onClick {

            RouterUtils.startAdd(it.context)

            StatTools.sendClick(it.context,StatisticsId.carport_add_null)

        }

    }

}